package server

import (
	"net/http"

	"github.com/go-programing-tour-book/chatroom/logic"
)

func RegisterHandle() {
	//启动广播器
	go logic.BroadCaster.Start()

	http.HandleFunc("/", httpHandleFunc)
	http.HandleFunc("/user_list", userListHandleFunc)
	http.HandleFunc("/ws", webSocketHandleFunc)
}
